Skip to content

Conversation

@markshannon
Copy link
Member

@markshannon markshannon commented Jun 10, 2021

I think this should work with clang, but I've only tested with gcc.

https://bugs.python.org/issue44363

Copy link
Contributor

@erlend-aasland erlend-aasland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works with --with-address-sanitizer with Clang on my MacBook Pro

$ clang --version
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ uname -a
Darwin mbpro.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May  8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64
$ ./python.exe -m test test_capi
0:00:00 load avg: 2.16 Run tests sequentially
0:00:00 load avg: 2.16 [1/1] test_capi

== Tests result: SUCCESS ==

1 test OK.

Total duration: 14.5 sec
Tests result: SUCCESS

@pablogsal
Copy link
Member

Thanks @markshannon, this looks great. Can you also open a PR here:

https://github.com/python/buildmaster-config/blob/a1e1bd89d034338993b42a24bef92e815b005f91/master/custom/factories.py#L233

To add again test_capi ?

@miss-islington
Copy link
Contributor

Thanks @markshannon for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @markshannon for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 10, 2021
@bedevere-bot
Copy link

GH-26641 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 10, 2021
@bedevere-bot
Copy link

GH-26642 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jun 10, 2021
miss-islington added a commit that referenced this pull request Jun 10, 2021
miss-islington added a commit that referenced this pull request Jun 10, 2021
@markshannon markshannon deleted the testable-with-address-sanitizer branch January 6, 2022 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants